﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000673 RID: 1651
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetChallengeRecommendLineupListScRsp : IMessage<GetChallengeRecommendLineupListScRsp>, IMessage, IEquatable<GetChallengeRecommendLineupListScRsp>, IDeepCloneable<GetChallengeRecommendLineupListScRsp>, IBufferMessage
	{
		// Token: 0x1700155D RID: 5469
		// (get) Token: 0x06004A93 RID: 19091 RVA: 0x000CD157 File Offset: 0x000CB357
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetChallengeRecommendLineupListScRsp> Parser
		{
			get
			{
				return GetChallengeRecommendLineupListScRsp._parser;
			}
		}

		// Token: 0x1700155E RID: 5470
		// (get) Token: 0x06004A94 RID: 19092 RVA: 0x000CD15E File Offset: 0x000CB35E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetChallengeRecommendLineupListScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700155F RID: 5471
		// (get) Token: 0x06004A95 RID: 19093 RVA: 0x000CD170 File Offset: 0x000CB370
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetChallengeRecommendLineupListScRsp.Descriptor;
			}
		}

		// Token: 0x06004A96 RID: 19094 RVA: 0x000CD177 File Offset: 0x000CB377
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeRecommendLineupListScRsp()
		{
		}

		// Token: 0x06004A97 RID: 19095 RVA: 0x000CD18C File Offset: 0x000CB38C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeRecommendLineupListScRsp(GetChallengeRecommendLineupListScRsp other) : this()
		{
			this.friendChallengeInfos_ = other.friendChallengeInfos_.Clone();
			this.retcode_ = other.retcode_;
			this.challengeId_ = other.challengeId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004A98 RID: 19096 RVA: 0x000CD1D9 File Offset: 0x000CB3D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeRecommendLineupListScRsp Clone()
		{
			return new GetChallengeRecommendLineupListScRsp(this);
		}

		// Token: 0x17001560 RID: 5472
		// (get) Token: 0x06004A99 RID: 19097 RVA: 0x000CD1E1 File Offset: 0x000CB3E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<CNDDKBFJAJN> FriendChallengeInfos
		{
			get
			{
				return this.friendChallengeInfos_;
			}
		}

		// Token: 0x17001561 RID: 5473
		// (get) Token: 0x06004A9A RID: 19098 RVA: 0x000CD1E9 File Offset: 0x000CB3E9
		// (set) Token: 0x06004A9B RID: 19099 RVA: 0x000CD1F1 File Offset: 0x000CB3F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001562 RID: 5474
		// (get) Token: 0x06004A9C RID: 19100 RVA: 0x000CD1FA File Offset: 0x000CB3FA
		// (set) Token: 0x06004A9D RID: 19101 RVA: 0x000CD202 File Offset: 0x000CB402
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x06004A9E RID: 19102 RVA: 0x000CD20B File Offset: 0x000CB40B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetChallengeRecommendLineupListScRsp);
		}

		// Token: 0x06004A9F RID: 19103 RVA: 0x000CD21C File Offset: 0x000CB41C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetChallengeRecommendLineupListScRsp other)
		{
			return other != null && (other == this || (this.friendChallengeInfos_.Equals(other.friendChallengeInfos_) && this.Retcode == other.Retcode && this.ChallengeId == other.ChallengeId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004AA0 RID: 19104 RVA: 0x000CD27C File Offset: 0x000CB47C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.friendChallengeInfos_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004AA1 RID: 19105 RVA: 0x000CD2E2 File Offset: 0x000CB4E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004AA2 RID: 19106 RVA: 0x000CD2EA File Offset: 0x000CB4EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004AA3 RID: 19107 RVA: 0x000CD2F4 File Offset: 0x000CB4F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.ChallengeId);
			}
			this.friendChallengeInfos_.WriteTo(ref output, GetChallengeRecommendLineupListScRsp._repeated_friendChallengeInfos_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004AA4 RID: 19108 RVA: 0x000CD360 File Offset: 0x000CB560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.friendChallengeInfos_.CalculateSize(GetChallengeRecommendLineupListScRsp._repeated_friendChallengeInfos_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004AA5 RID: 19109 RVA: 0x000CD3CC File Offset: 0x000CB5CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetChallengeRecommendLineupListScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.friendChallengeInfos_.Add(other.friendChallengeInfos_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004AA6 RID: 19110 RVA: 0x000CD42D File Offset: 0x000CB62D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004AA7 RID: 19111 RVA: 0x000CD438 File Offset: 0x000CB638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					if (num != 112U)
					{
						if (num != 122U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.friendChallengeInfos_.AddEntriesFrom(ref input, GetChallengeRecommendLineupListScRsp._repeated_friendChallengeInfos_codec);
						}
					}
					else
					{
						this.ChallengeId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001D9F RID: 7583
		private static readonly MessageParser<GetChallengeRecommendLineupListScRsp> _parser = new MessageParser<GetChallengeRecommendLineupListScRsp>(() => new GetChallengeRecommendLineupListScRsp());

		// Token: 0x04001DA0 RID: 7584
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001DA1 RID: 7585
		public const int FriendChallengeInfosFieldNumber = 15;

		// Token: 0x04001DA2 RID: 7586
		private static readonly FieldCodec<CNDDKBFJAJN> _repeated_friendChallengeInfos_codec = FieldCodec.ForMessage<CNDDKBFJAJN>(122U, CNDDKBFJAJN.Parser);

		// Token: 0x04001DA3 RID: 7587
		private readonly RepeatedField<CNDDKBFJAJN> friendChallengeInfos_ = new RepeatedField<CNDDKBFJAJN>();

		// Token: 0x04001DA4 RID: 7588
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04001DA5 RID: 7589
		private uint retcode_;

		// Token: 0x04001DA6 RID: 7590
		public const int ChallengeIdFieldNumber = 14;

		// Token: 0x04001DA7 RID: 7591
		private uint challengeId_;
	}
}
